package com.zhl.study.anno;

import org.springframework.stereotype.Service;

import java.lang.annotation.*;

/**
 * @description TODO
 * @Author: z156940l@outlook.com
 * @className Duty
 * @Date: 2024/12/26 22:28
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Service
public @interface Duty {
    /**
     * 标记具体业务场景
     * @return
     */
    String[] type()  ;

    /**
     * 排序：数值越小，排序越前
     * @return
     */
    int order() default 0;
}